package com.vanzo.command;

/**
 * Created by tisen on 2018/2/5.
 */

public abstract class Command {
    public static final String AT_HEAD = "AT+";
    public static final String AT_MID = ":";
    public static final String AT_TAIL_POS = "0";
    public static final String AT_TAIL_NAV = "1";

    public String getATCommand(Object o) {
        return AT_HEAD + "+" + AT_MID + ":" + o.toString();
    }

    public String getPosString() {
        return "+" + AT_MID + ":" + AT_TAIL_POS;
    }

    public String getNavString() {
        return "+" + AT_MID + ":" + AT_TAIL_NAV;
    }

    public Command() {
    }
}
